﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Tomahawk.Runtime.Resources.Generic
{
    /// <summary>
    /// Simple LoadableResource wrapper for curve resources
    /// </summary>
    public class Curve : LoadableResource
    {
        private string asset;

        public Microsoft.Xna.Framework.Curve XnaCurve { get; private set; }

        public Curve(string curveAsset)
        {
            this.asset = curveAsset;
        }

        protected override bool OnLoad(GraphicsDevice graphics, ContentManager contentManager)
        {
            this.XnaCurve = contentManager.Load<Microsoft.Xna.Framework.Curve>(this.asset);
            return true;
        }

    }
}
